package com.example.transactionhintassistant.pojo.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Schema(description = "修改密码对象")
@Data
public class ChangePwdDto {
    @Schema(description = "旧密码")
    @NotEmpty(message = "旧密码不能为空")
    private String password;

    @Schema(description = "新密码")
    @NotEmpty(message = "新密码不能为空")
    @Length(min = 6, max = 16,message = "密码⻓度⾄少6位但不超过16位!")
    private String newPassword;
}
